package com.EM1.www.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class Connectmysql {
    private Connectmysql(){}
    public static Connection Connectmysql() throws Exception {
        Class.forName("com.mysql.cj.jdbc.Driver");
        String url= "jdbc:mysql://localhost:3306/examniation_management?useServesPrepStmts=true";
        String username="root";
        String password="Hongjichao12";
        Connection conn = DriverManager.getConnection(url, username, password);
        return conn;
    }
}
